<?php foreach ($ids as $info): ?>
<div class="list-box">
	<?php echo $result[$info['id']]['name'] ?>
	<?php
		$label = 'See All '.$info['count'].' Albums';
		$rurl= array('/resource/default/listAlbum','aid'=>$info['id']);
		$htmlOption = array();
		echo CHtml::link($label,$rurl,$htmlOption);
	?>
</div>
<?php endforeach ?>